#-------------------------------------------------
#
# Project created by QtCreator 2012-01-26T16:37:44
#
#-------------------------------------------------

TARGET = EbnMonitor
TEMPLATE = lib

CONFIG += staticlib

DEFINES += EBNMONITOR_LIBRARY

# EBN datatype
# Now with more robust environment enforcement!
EBN_INCLUDE = $$(EBN_INCLUDE)
!isEmpty (EBN_INCLUDE) {
    INCLUDEPATH += "$$(EBN_INCLUDE)"

    # Link to the library
    EBN_LIB = $$(EBN_LIB)
    !isEmpty (EBN_LIB) {
        LIBS += "$$(EBN_LIB)/Ebn.lib"
    } else {
        error("EBN library was not linked in the environment! Add the appropriate EBN_LIB variable to the compilation environment")
    }
} else {
    error("EBN headers were not included in the environment! Add the appropriate EBN_INCLUDE variable to the compilation environment")
}

SOURCES += EbnMonitor.cpp \
    dialog.cpp

HEADERS += EbnMonitor.h\
        EbnMonitor_global.h \
    dialog.h

symbian {
    MMP_RULES += EXPORTUNFROZEN
    TARGET.UID3 = 0xE441C756
    TARGET.CAPABILITY = 
    TARGET.EPOCALLOWDLLDATA = 1
    addFiles.sources = EbnMonitor.dll
    addFiles.path = !:/sys/bin
    DEPLOYMENT += addFiles
}

unix:!symbian {
    maemo5 {
        target.path = /opt/usr/lib
    } else {
        target.path = /usr/lib
    }
    INSTALLS += target
}

FORMS += \
    dialog.ui



